package com.qijian.business.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.List;

@Data
@ToString
public class SafeItemVo {
    @ApiModelProperty("ID")
    private String id;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("物料表ID")
    private Long itemId;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("安全库存Id")
    private Long safeId;

    @ApiModelProperty("使用次数")
    private Integer count;

    @ApiModelProperty("交货天数")
    private Long deliveryDays;

    @ApiModelProperty("是否检验")
    private Boolean isCheck;

    @ApiModelProperty("是否禁用")
    private Boolean isDisabled;

    @Excel(name = "物料属性")
    private String itemAttr;

    @ApiModelProperty(value = "是否允许采购")
    private Boolean isPurchase;

    @Excel(name = "是否允许库存")
    private Boolean isStock;

    @ApiModelProperty("设备用量")
    private BigDecimal spareQuantity;

    @ApiModelProperty("物料编码")
    private String itemCode;

    @ApiModelProperty("物料名称")
    private String itemName;

    @ApiModelProperty("物料分类")
    private String itemClassify;

    @ApiModelProperty("主单位")
    private String itemUnits;

    @ApiModelProperty("辅单位")
    private String itemUnitSup;

    @ApiModelProperty("物料类型")
    private String itemType;

    @ApiModelProperty("物料版本")
    private String itemVersion;

    @ApiModelProperty(value = "物料价格")
    private BigDecimal itemPrice;

    @ApiModelProperty(value = "物料来源")
    private String itemSource;

    @ApiModelProperty(value = "单重")
    private BigDecimal itemWeight;

    @ApiModelProperty(value = "起订量")
    private BigDecimal moq;

    @ApiModelProperty(value = "质保期限")
    private Integer qaQuantity;

    @ApiModelProperty(value = "质保期限类型")
    private String qaType;

    @ApiModelProperty(value = "安全库存")
    private BigDecimal safeStock;

    @ApiModelProperty(value = "主数量")
    private BigDecimal quantity;

    @ApiModelProperty(value = "采购数量")
    private Long purchaseQuantity;

    @ApiModelProperty(value = "辅数量")
    private BigDecimal quantitySup;

}
